home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="%4css/default.css">
-
- <script language=Javascript>
- //LOCALIZATION STRINGS
- var L_DESCRIPTION_SEPARATOR = ": ";
- </script>
-
- <script>
- var descArr = new Array();
- %7
-
- function init()
- {
- // Remove the formatting options
- document.sf.targets.options[0] = null;
- document.sf.choices.options[0] = null;
- }
-
- function showDesc(list)
- {
- var listLength = list.length;
- var outputstring = "";
- var bFound = false;
-
- for(var i = 0; i < listLength; i++)
- {
- if (list[i].selected)
- {
- if(bFound)
- {
- // more than one item selected so don't show any description
- outputstring = "";
- break;
- }
-
- outputstring = list[i].text + L_DESCRIPTION_SEPARATOR + descArr[list[i].value];
- bFound = true;
- }
- }
-
- document.forms['sf'].desc.value = outputstring;
- }
-
- function moveTarget(direction)
- {
- var list = document.forms['sf'].targets.options;
- var listLength = list.length;
-
- // no need to do anything if there are fewer than 2 items in the list
- if(listLength < 2)
- return;
-
- var bFound = false;
- var index = -1;
- for(var i = 0; i < listLength; i++)
- {
- if (list[i].selected)
- {
- // don't do anything if more than one item selected
- if(bFound)
- return;
-
- index = i;
- bFound = true;
- }
- }
-
- // only move if not moving the first item up or moving the last one down
- if(bFound && !(index == 0 && direction == -1) && !(index == listLength-1 && direction == 1))
- {
- // swap the selected item with either the one below it (for moving down) or the
- // one above it (for moving up)
-
- var selectedItem = document.sf.targets.options[index];
- var swapWithItem = document.sf.targets.options[index + direction];
-
- selected_name = selectedItem.text;
- selected_id = selectedItem.value;
-
- selectedItem.text = swapWithItem.text;
- selectedItem.value = swapWithItem.value;
-
- swapWithItem.text = selected_name;
- swapWithItem.value = selected_id;
-
- selectedItem.selected = false;
- swapWithItem.selected = true;
- }
- }
-
- function blurIt()
- {
- document.sf.targets.focus();
- }
-
- function addTarget()
- {
- // Run through this list twice, once to add, once to delete
- total = document.sf.choices.options.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.sf.choices.options[count];
-
- if (current_target.selected)
- {
-
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.sf.targets.options[document.sf.targets.options.length] = option;
- }
- }
-
- for (count = document.sf.choices.options.length -1; count >= 0; --count)
- {
- if (document.sf.choices.options[count].selected)
- document.sf.choices.options[count] = null;
- }
- }
-
- function deleteTarget()
- {
-
- // Run through the options and remove the current selections
- total = document.sf.targets.length;
- for (count = 0; count < total; ++count)
- {
- current_target = document.sf.targets.options[count];
- if (current_target.selected)
- {
- // remove the object from the current targets
- target_name = current_target.text;
- target_id = current_target.value;
-
- // Create a new option
- option = new Option(target_name, target_id, false, false);
-
- // add it to the possible targets
- document.sf.choices.options[document.sf.choices.options.length] = option;
- }
- }
- for (count = total -1; count >= 0; --count)
- {
- if (document.sf.targets.options[count].selected)
- {
- document.sf.targets.options[count] = null;
- }
-
- }
- }
-
- function doSubmit()
- {
- final_value = "";
- first = true;
-
- for (var count = 0; count < document.sf.targets.options.length; ++count)
- {
- if (!first)
- {
- final_value += "*";
- }
- else first = false;
-
- current_target = document.sf.targets.options[count];
- final_value += current_target.value;
-
- // De-select all entries on the select box
- current_target.selected = false;
- }
-
- // Build the string
- document.sf.checkedItems.value = final_value;
-
- document.forms['sf'].submit()
- }
-
- </script>
-
- </HEAD>
-
- <BODY LEFTMARGIN="5" RIGHTMARGIN="5" onload="init();">
-
- <DIV ID="tooltip" STYLE="position:absolute;visibility:hidden;z-index:99;"></DIV>
-
- <SCRIPT SRC="%5js/helps.js"></SCRIPT>
- <SCRIPT SRC="%6js/tips.js"></SCRIPT>
-
- <SPAN CLASS="listSelected">Set the default selection formula for the report.</SPAN>
- <BR>
- This report contains selection formula which viewers can use to filter the report by selecting different values.
- The defaults set here will be the initial filter values.
- <BR>
- <FORM NAME="sf" METHOD="POST" ACTION="%1">
- %2
- <BR>
- %3
-
- <p>
-
- <SPAN CLASS="listSelected">Set the processing extensions that this report will use.</SPAN>
- <input type="hidden" name="checkedItems" value="">
- <table>
- <tr><td>
-
- <table align=left CELLPADDING="0" CELLSPACING="0" border=0>
- <tr>
- <td class="list" colspan=2 valign='bottom' align=left>Available Processing Extensions:</td>
- <td class="list" width='250px' valign='bottom' align=left>Use these Processing Extensions (in the order listed):</td>
- <td class="list"> </td>
- </tr>
- <tr>
- <td class="list" align=left>
- <SELECT class="menuFormElement" onchange='showDesc(this.options)' onclick='showDesc(this.options)' multiple NAME="choices" SIZE=5 style='width:250px' width='250px'>
- <OPTION> This is a formatting string </OPTION>
- %8
- </SELECT>
- </td>
- <td>
- <table>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:addTarget()"> > </a></div>
- </td></tr>
- </table>
- </td></tr>
- <tr><td align=middle>
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0>
- <tr><td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:deleteTarget()"> < </a></div>
- </td></tr>
- </table>
- </td></tr>
- </table>
- </td>
- <td class="list" align=left>
- <SELECT class="menuFormElement" onchange='showDesc(this.options)' onclick='showDesc(this.options)' multiple NAME="targets" SIZE=5 style='width:250px' width="250px">
- <OPTION> This is a formatting string </OPTION>
- %9
- </SELECT>
- </td>
- <td valign=top>
- <a href='javascript:moveTarget(-1);'><img src='%4images/uparrow.gif' alt='Up' height=20 border=0></a><br>
- <a href='javascript:moveTarget(1);'><img src='%4images/downarrow.gif' alt='Down' height=20 border=0></a>
- </td>
- </tr>
- </table>
-
- </td></tr>
- <tr><td class='list'>
- Description:<br>
- <input type='text' size=65 name='desc' value='' disabled onfocus='blurIt();'>
-
- </td></tr>
- </table>
-
- <table align=right border=0 cellpadding=0>
- <tr valign=center>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:doSubmit();" onMouseOver="St(7);window.status='';return true;" onMouseOut="Ht()">Update</a></div>
- </td>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: document.forms.sf.reset()" onMouseOver="St(8);window.status='';return true;" onMouseOut="Ht()">Reset</a></div>
- </td>
- </tr>
- </table>
- </FORM>
-
-
- </BODY>
- </HTML>
-